package com.qmzy.lab05.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

public class NotNullQueryWrapper<T> extends QueryWrapper<T> {
    @Override
    public QueryWrapper<T> eq(boolean condition, String column, Object val) {
        condition = (val != null);
        return super.eq(condition, column, val);
    }

    @Override
    public QueryWrapper<T> ge(boolean condition, String column, Object val) {
        condition = (val != null);
        return super.ge(condition, column, val);
    }

    @Override
    public QueryWrapper<T> le(boolean condition, String column, Object val) {
        condition = (val != null);
        return super.le(condition, column, val);
    }
}
